package test.elasticsearch;

import java.net.InetSocketAddress;

import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.common.transport.InetSocketTransportAddress;

public class App {
	
	public static void main(String[] args) {
		TransportClient client = TransportClient.builder().build();
		client.addTransportAddress(new InetSocketTransportAddress(new InetSocketAddress("localhost", 9300)));
		client.admin().indices();
		client.close();
	}

}
